package jeconbond.economic.agent;

import jeconbond.economic.resources.ResourceStorrage;
import jeconbond.economic.strategy.IMerchant;

public abstract class BaseEconProdDecoratod implements IEconomicProducer {
	protected IEconomicProducer subagent;

	public BaseEconProdDecoratod(IEconomicProducer subagent) {
		this.subagent = subagent;
	}

	@Override
	public IMerchant getMerchant() {
		return subagent.getMerchant();
	}

	@Override
	public ResourceStorrage getInputRS() {
		return subagent.getInputRS();
	}

	@Override
	public ResourceStorrage getOutputRS() {
		return subagent.getOutputRS();
	}

	@Override
	public void setMerchant(IMerchant merchant) {
		subagent.setMerchant(merchant);
	}
}
